

package com.hazelcast.internal.metrics.managementcenter;

import java.util.List;
import java.util.Map;

public class MetricsResultSet {

    private final long nextSequence;
    private final List<Map.Entry<Long, byte[]>> collections;

    public MetricsResultSet(long nextSequence, List<Map.Entry<Long, byte[]>> collections) {
        this.nextSequence = nextSequence;
        this.collections = collections;
    }

    /**
     * The next sequence to read from.
     */
    public long nextSequence() {
        return nextSequence;
    }

    public List<Map.Entry<Long, byte[]>> collections() {
        return collections;
    }
}

